package com.one.common.model.http;

/**
 * 保存接口常量
 */

public class NetConstant {

    /***
     * 部网络sdk接入: 本地总开关开关 (优先级比服务接口开关还高)
     * true 开
     * false
     */
    public static boolean SWITCH_BNET = true;
    public static boolean SWITCH_SingUp = false;
    public static boolean SWITCH_PickUp = false;
    public static boolean SWITCH_BNET_BY_SERVER= false;/**部网络sdk初始化开关: 读接口是否使用 */
    public static boolean SWITCH_BNET_DO_ONCE= false;/**只初始化一次 计数 */


    /***
     *  app环境开关:
     *
     *     ( test   测试)
     *     ( release  正式)
     *      (bastion 堡垒)
     *     MyContact 修改部网络 ： 正; 测 key
     */
//    public static String ENVIRONMENT = "bastion";
//    public static String ENVIRONMENT = "test";
    public static String ENVIRONMENT = "release";
//    public static String ENVIRONMENT = "dev";


    /**
     * 模拟环境
     */
    public static final String APP_HOST = "http://192.168.21.47:3000/mock/31/";


    /**
     * 开发环境
     */
    public static final String APP_HOST_DEVELOP = "http://192.168.21.48:7777/";


    //--------------------------------------------------------------------------------------------------
    public static  String APP_HOST_PRODUCT ="http://zuul.56hyy.com/";//生产环境
    public static  String APP_LOCATION_HOST_PRODUCT ="http://location.56hyy.com/";//轨迹地址
    public static  String APP_ADMIN_HOST_PRODUCT = "https://admin.56hyy.com/";
    public static  String PROTOCOL_URL = "http://protocol.56hyy.com";//协议地址

    static {
        switch (ENVIRONMENT) {
            case "release":
                APP_HOST_PRODUCT = "http://zuul.56hyy.com/";//生产正式地址


                APP_LOCATION_HOST_PRODUCT = "http://location.56hyy.com/"; //轨迹地址

                APP_ADMIN_HOST_PRODUCT = "https://admin.56hyy.com/";
                PROTOCOL_URL = "http://protocol.56hyy.com";//协议地址

                break;
            case "test":
                APP_HOST_PRODUCT = "http://test.zuul.56hyy.com/";

//            APP_HOST_PRODUCT = "http://192.168.1.145:7777/";//big ice
//            APP_HOST_PRODUCT = "http://192.168.1.155:7777/";//a yellow
//            APP_HOST_PRODUCT = "http://192.168.1.131:7777/";//water
//            APP_HOST_PRODUCT = "http://192.168.1.188:7777/";//rase
//            APP_HOST_PRODUCT = "http://192.168.1.197:7777/";//xq

                APP_LOCATION_HOST_PRODUCT = "http://test.location.56hyy.com/";
                APP_ADMIN_HOST_PRODUCT = "http://test.admin.56hyy.com/";
                PROTOCOL_URL = "http://test.protocol.56hyy.com";
                break;
            case "bastion":
                APP_HOST_PRODUCT = "http://bastion.zuul.56hyy.com/";

                APP_LOCATION_HOST_PRODUCT = "http://bastion.location.56hyy.com/";
                APP_ADMIN_HOST_PRODUCT = "http://bastion.location.56hyy.com/";
                PROTOCOL_URL = "http://test.protocol.56hyy.com";
                break;
            case "dev":
                APP_HOST_PRODUCT = "http://dev.zuul.56hyy.com/";

                APP_LOCATION_HOST_PRODUCT = "http://dev.location.56hyy.com/";
                APP_ADMIN_HOST_PRODUCT = "http://dev.location.56hyy.com/";
                PROTOCOL_URL = "http://dev.protocol.56hyy.com";
                break;
        }
    }



    public static  String PROTOCOL_DRIVER_URL = PROTOCOL_URL + "/xy/司机版.html";
    public static  String PROTOCOL_CAR_URL = PROTOCOL_URL + "/xy/车主版.html";
    public static  String PROTOCOL_GOODS_URL = PROTOCOL_URL + "/xy/货主版.html";
    public static  String PROTOCOL_SECRECY_URL = PROTOCOL_URL + "/xy/用户隐私协议.html";

    /**
     * 检查更新地址
     */
    public static final String UPDATE_URL = "http://api.fir.im/apps/latest/";

}
